package com.nursinghome.common.service;

import com.nursinghome.bean.PageFilter;
import com.nursinghome.bean.Reservation;
import com.nursinghome.exception.NurisingHomeException;

import java.util.List;

/**
* @author 程硕
* @createDate 2025-04-07 01:10:33
*/
public interface ReservationService  {
    //新增
    Boolean insert(Reservation reservation) throws NurisingHomeException;
    //修改
    Boolean update(Reservation reservation) throws NurisingHomeException;
    Boolean updateByState(Reservation reservation) throws NurisingHomeException;
    // 删除
    Boolean delete(String id) throws NurisingHomeException;
    //根据id回显数据
    Reservation selectById(String id);
    //查询所有
    PageFilter<Reservation> selectAll(String pageNum, String pageSize, Reservation reservation);
    List<Reservation> selectAllByCondition(Reservation reservation);
}
